﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
namespace Gds.Model.ConfigModel.GasMeter
{
    public class ShowRealTimeModel : INotifyPropertyChanged
    {
        private string _channalNo;
        private string _serialNo;
        private string _gasValue;
        private string _gasState;

        public string ChannalNo
        {
            get { return _channalNo; } set { _channalNo = value;OnPropertyChange(nameof(ChannalNo));}
        }
        public string SerialNo
        {
            get { return _serialNo; }
            set { _serialNo = value; OnPropertyChange(nameof(SerialNo)); }
        }
        public string GasValue
        {
            get { return _gasValue; }
            set { _gasValue = value; OnPropertyChange(nameof(GasValue)); }
        }
        public string GasState
        {
            get { return _gasState; }
            set { _gasState = value; OnPropertyChange(nameof(GasState)); }
        }
        public event PropertyChangedEventHandler PropertyChanged;
        public virtual void OnPropertyChange(string propertyName) { 
            if(PropertyChanged != null) PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }
    }
}
